]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
plugin: Use the clutter xdisplay for has_swap_events
authorAdel Gadllah <adel.gadllah@gmail.com>
Sat, 19 Jul 2014 16:48:52 +0000 (18:48 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sat, 19 Jul 2014 16:51:56 +0000 (18:51 +0200)
The filter now runs on the backend connection.

src/gnome-shell-plugin.c

index 8edc7b69a72fc8949f99678b46324e2cd1427f44..b1a704ace5afac4f56e0c3fd62dc8101c42cee67 100644 (file)
@@ -174,7 +174,6 @@ gnome_shell_plugin_has_swap_event (GnomeShellPlugin *shell_plugin)
   const char * (* query_extensions_string) (Display *dpy, int screen);
   Bool (* query_extension) (Display *dpy, int *error, int *event);
   MetaScreen *screen;
-  MetaDisplay *display;
   Display *xdisplay;
   const char *glx_extensions;
 
@@ -183,9 +182,8 @@ gnome_shell_plugin_has_swap_event (GnomeShellPlugin *shell_plugin)
     return FALSE;
 
   screen = meta_plugin_get_screen (plugin);
-  display = meta_screen_get_display (screen);
 
-  xdisplay = meta_display_get_xdisplay (display);
+  xdisplay = clutter_x11_get_default_display ();
 
   query_extensions_string =
     (void *) cogl_get_proc_address ("glXQueryExtensionsString");